package com.firesrc.service;

import com.firesrc.mail.thread.SendMailTask;
import com.firesrc.util.S;
import com.firesrc.util.SystemConfigConstant;

public class SendMailExecutorManager extends SuperScheduledExecutorManager {
  @Override
  public long getScheduledInterval() {
    return S.i(SystemConfigConstant.SEND_MAIL_INTERVAL) * 60;
  }

  @Override
  public int getThreadCount() {
    return S.i(SystemConfigConstant.SEND_MAIL_THREAD_COUNT);
  }

  @Override
  public Runnable getSubRunnableTask() {
    return new SendMailTask();
  }

}
